<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jq parseJSOn()</title>
    <script src="/jquery-3.2.1.js"></script>
</head>
<body>
<script type="text/javascript">
    var s1 = "{\"name\":\"盖伦\"";
    var s2 = ",\"hp\":\"666\"}";
    s3 = s1 + s2;
    document.write("这是一个string格式的字符串："+s3);
    var green = $.parseJSON(s3);
    document.write("<br>这是一个jsom对象："+green);
</script>

</body>
</html>